# -*- mode: spamassassin -*-
# SpamAssassin user preferences file.  See 'man Mail::SpamAssassin::Conf' for
# details of what can be tweaked.
###########################################################################

# XXX update the date in the version tag whenever you make changes!
# version_tag		lists.debian.org-2007-04-23-01

required_hits		4.0
# use_terse_report	0
# check_mx_attempts	2
#rbl_timeout		5
# dns_available		yes
skip_rbl_checks		0
dns_available test: gluck.debian.org master.debian.org klecker.debian.org

# use newer score and rules, but don't override our own scores
include /var/list/.spamassassin/newer-rules/50_scores.cf

internal_networks	82.195.75.100/32
trusted_networks	82.195.75.64/26 70.103.162.0/24 192.25.206.10/32

# No unnecessary crap --liiwi 2004-08-29
report_safe 		0

# Making this explicit --pasc, 2004-02-22
use_razor2		1

# This should work now -- pasc, 2005-07-19
use_pyzor		1

# testing only --joy, 2003-09-05
# we have non english lists on lists.d.o --rmurray, 2003-12-03
# which is why the scores are divided with a hundred, duh --joy, 2004-05-27
#ok_locales              en
# ok_languages            en

# good idea, should have been taken further, but preemptively
# commented out by Joy after the 2003-06-27 debacle where the
# 10 MB bayesian database caused spamds to consume gobs of memory
#bayes_expiry_scan_count 20000

# we don't train the Bayesian classifier so don't give it full weight
# cf. bug #188703 --joy, 2003-04-12, 2003-04-28
# 
# set more realistic settings, so bayes is not automatic poisoned any more
#                 -- zobel, 2207-01-13
bayes_auto_learn_threshold_nonspam  -4
bayes_auto_learn_threshold_spam      27

subscriber_file /var/list/uniq-subscribers


################################################################
# SARE-rules (http://www.rulesemporium.com/rules.htm)
################################################################

#include /var/list/.spamassassin/sare-rules/70_sare_adult.cf
#include /var/list/.spamassassin/sare-rules/70_sare_header0.cf
#include /var/list/.spamassassin/sare-rules/70_sare_header1.cf
#include /var/list/.spamassassin/sare-rules/70_sare_html0.cf
#include /var/list/.spamassassin/sare-rules/70_sare_html1.cf
#include /var/list/.spamassassin/sare-rules/70_sare_oem.cf
#include /var/list/.spamassassin/sare-rules/70_sare_specific.cf
#include /var/list/.spamassassin/sare-rules/70_sare_stocks.cf
#include /var/list/.spamassassin/sare-rules/72_sare_bml_post25x.cf
#include /var/list/.spamassassin/sare-rules/75_black_uri_list.cf
#include /var/list/.spamassassin/sare-rules/99_sare_fraud_post25x.cf


################################################################
# newer rules which aren't in /usr/share/spamassassin
################################################################

# these rules are already newer in newer SA
# include /var/list/.spamassassin/newer-rules/20_dnsbl_tests.cf
# include /var/list/.spamassassin/newer-rules/20_head_tests.cf
# include /var/list/.spamassassin/newer-rules/20_ratware.cf
# include /var/list/.spamassassin/newer-rules/20_uri_tests.cf
# include /var/list/.spamassassin/newer-rules/25_uribl.cf
# include /var/list/.spamassassin/newer-rules/60_whitelist_dk.cf
include /var/list/.spamassassin/newer-rules/70_iadb.cf
include /var/list/.spamassassin/newer-rules/80_additional.cf

include common/sare/70_sare_adult.cf
include common/sare/70_sare_header0.cf
include common/sare/70_sare_header1.cf
include common/sare/70_sare_header2.cf
include common/sare/70_sare_header3.cf
include common/sare/70_sare_header.cf
include common/sare/70_sare_header_eng.cf
include common/sare/70_sare_html0.cf
include common/sare/70_sare_html1.cf
include common/sare/70_sare_html2.cf
include common/sare/70_sare_html3.cf
include common/sare/70_sare_html4.cf
include common/sare/70_sare_html.cf
include common/sare/70_sare_oem.cf
include common/sare/70_sare_specific.cf
include common/sare/70_sare_spoof.cf
include common/sare/70_sare_stocks.cf
include common/sare/72_sare_bml_post25x.cf
include common/sare/99_sare_fraud_post25x.cf

# Include common spam stuff

include common/common_spam
include common/list_specific
include common/scores
include common/debian_specific
include common/drug_spam
include common/image_spam
include common/misc_spam
include common/money_spam
include common/phrase_spam
include common/pron_spam
include common/scam_spam
include common/url_spam
include common/virus_spam


header EXINNEN From =~ /schilling\@fokus\.fraunhofer\.de/i
score EXINNEN 2.3

header LDO_WHITELIST	eval:check_for_subscriber('/var/list/uniq-subscribers')
describe LDO_WHITELIST Subscribed to the whitelist
score  LDO_WHITELIST	-5

header XXXPRON	    subject =~ /\bxxx\b/i
score  XXXPRON	    8.0

header __MENTORSRFS1  ToCc =~ /debian-mentors\@lists\.debian\.org/
header __MENTORSRFS2   subject =~ /\bRFS\b/
meta	MENTORSRFS  (__MENTORSRFS1 && __MENTORSRFS2)
describe MENTORSRFS This mail might be a request for sponsorship on mentors
score  MENTORSRFS   -0.3

header __DEVELITP1  ToCc =~ /debian-devel\@lists\.debian\.org/
header __DEVELITP2   subject =~ /\bITP:\b/
meta	DEVELITP  (__DEVELITP1 && __DEVELITP2)
describe MENTORSRFS This mail might be an ITP on d-devel
score  MENTORSRFS   -0.3

header	SUBCHANGES  subject =~ /Daily un\/subscription report/i
describe SUBCHANGES Subscriber Changes for all lists sent to listmasters
score	SUBCHANGES  -10
